<?php
namespace App\Modules\Sp;

use App\Modules\AdapterApi;
use App\Services\Sp\SpIndex;

class Sp extends AdapterApi
{

    //添加营业员
    public function addSp(){
//        $data = pick_array($this->postData, ['name', 'description',
//            'pic_id', 'relative_path', 'absolute_path', 'jump_url',
//            'add_user_id', 'auditor_id','start_time',
//            'end_time','status','order','audit_status','c_id']);
        $data = $this->postData;
        return SpIndex::Sp()->addSp($data);
    }

    //sp列表
    public function spList(){
        $data = $this->postData;
        return SpIndex::Sp()->spList($data);
    }

    //sp详情
    public function spDetail(){
        $data = $this->postData;
        return SpIndex::Sp()->spDetail($data);
    }

    //修改sp
    public function updateSp(){
        $data = $this->postData;
        return SpIndex::Sp()->updateSp($data);
    }

    //终止/恢复协议
    public function termination()
    {
        $data = $this->postData;
        return SpIndex::Sp()->termination($data);
    }


}